package com.atguigu.yygh.exception;

/**
 * @author A
 * @version 1.0
 * @description: 自定义异常类
 * @date 2025/3/10 20:42
 */
public class YyghException extends RuntimeException {
    private Integer code;
    private String message;

    // 构造方法
    public YyghException(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
